package com.library;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class TilesDynamicDefinitionInterceptor extends HandlerInterceptorAdapter{

	public void postHandle(HttpServletRequest request,
            HttpServletResponse response, Object handler,
            ModelAndView modelAndView) throws Exception {
		
		if(modelAndView != null){
			modelAndView.addObject("auth", "/WEB-INF/jsp/tiles/auth_guest.jsp");
		}
        
    }
	
}